script_game_start = 0
script_game_event_party_encounter = 1
script_game_event_simulate_battle = 2
script_game_event_battle_end = 3
script_order_best_besieger_party_to_guard_center = 4
script_game_get_item_buy_price_factor = 5
script_game_get_item_sell_price_factor = 6
script_get_trade_penalty = 7
script_game_event_buy_item = 8
script_game_event_sell_item = 9
script_game_get_troop_wage = 10
script_game_get_total_wage = 11
script_game_get_join_cost = 12
script_game_get_prisoner_price = 13
script_game_check_prisoner_can_be_sold = 14
script_game_event_detect_party = 15
script_game_event_undetect_party = 16
script_game_get_statistics_line = 17
script_game_get_date_text = 18
script_game_get_money_text = 19
script_game_get_party_companion_limit = 20
script_game_reset_player_party_name = 21
script_party_get_ideal_size = 22
script_game_get_party_prisoner_limit = 23
script_game_get_item_extra_text = 24
script_game_on_disembark = 25
script_game_context_menu_get_buttons = 26
script_game_event_context_menu_button_clicked = 27
script_game_get_skill_modifier_for_troop = 28
script_npc_get_troop_wage = 29
script_setup_talk_info = 30
script_setup_talk_info_companions = 31
script_update_party_creation_random_limits = 32
script_set_trade_route_between_centers = 33
script_center_change_trade_good_production = 34
script_average_trade_good_productions = 35
script_normalize_trade_good_productions = 36
script_update_trade_good_prices = 37
script_update_trade_good_price_for_party = 38
script_do_merchant_town_trade = 39
script_party_calculate_regular_strength = 40
script_party_calculate_strength = 41
script_loot_player_items = 42
script_party_calculate_loot = 43
script_calculate_main_party_shares = 44
script_party_give_xp_and_gold = 45
script_setup_troop_meeting = 46
script_setup_party_meeting = 47
script_party_remove_all_companions = 48
script_party_remove_all_prisoners = 49
script_party_add_party_companions = 50
script_party_add_party_prisoners = 51
script_party_prisoners_add_party_companions = 52
script_party_prisoners_add_party_prisoners = 53
script_party_add_party = 54
script_party_copy = 55
script_clear_party_group = 56
script_get_nonempty_party_in_group = 57
script_collect_prisoners_from_empty_parties = 58
script_print_casualties_to_s0 = 59
script_write_fit_party_members_to_stack_selection = 60
script_remove_fit_party_member_from_stack_selection = 61
script_remove_random_fit_party_member_from_stack_selection = 62
script_cf_training_ground_sub_routine_1_for_melee_details = 63
script_training_ground_sub_routine_2_for_melee_details = 64
script_cf_training_ground_sub_routine_for_training_result = 65
script_print_troop_owned_centers_in_numbers_to_s0 = 66
script_get_random_melee_training_weapon = 67
script_start_training_at_training_ground = 68
script_party_count_fit_regulars = 69
script_party_count_fit_for_battle = 70
script_party_count_members_with_full_health = 71
script_get_stack_with_rank = 72
script_inflict_casualties_to_party = 73
script_move_members_with_ratio = 74
script_count_parties_of_faction_and_party_type = 75
script_faction_get_number_of_armies = 76
script_faction_recalculate_strength = 77
script_cf_select_random_town_with_faction = 78
script_cf_select_random_village_with_faction = 79
script_cf_select_random_walled_center_with_faction = 80
script_cf_select_random_walled_center_with_faction_and_owner_priority_no_siege = 81
script_cf_select_random_walled_center_with_faction_and_less_strength_priority = 82
script_cf_select_random_town_at_peace_with_faction = 83
script_cf_select_random_town_at_peace_with_faction_in_trade_route = 84
script_shuffle_troop_slots = 85
script_get_random_quest = 86
script_cf_get_random_enemy_center_within_range = 87
script_cf_faction_get_random_enemy_faction = 88
script_cf_faction_get_random_friendly_faction = 89
script_cf_troop_get_random_enemy_troop_with_occupation = 90
script_cf_get_random_kingdom_hero_as_lover = 91
script_cf_get_random_lord_in_a_center_with_faction = 92
script_cf_get_random_lord_except_king_with_faction = 93
script_cf_get_random_lord_from_another_faction_in_a_center = 94
script_get_closest_walled_center = 95
script_get_closest_center = 96
script_get_closest_center_of_faction = 97
script_get_closest_walled_center_of_faction = 98
script_let_nearby_parties_join_current_battle = 99
script_party_wound_all_members_aux = 100
script_party_wound_all_members = 101
script_calculate_battle_advantage = 102
script_cf_check_enemies_nearby = 103
script_get_heroes_attached_to_center_aux = 104
script_get_heroes_attached_to_center = 105
script_get_heroes_attached_to_center_as_prisoner_aux = 106
script_get_heroes_attached_to_center_as_prisoner = 107
script_give_center_to_faction = 108
script_give_center_to_faction_aux = 109
script_change_troop_faction = 110
script_give_center_to_lord = 111
script_get_number_of_hero_centers = 112
script_cf_get_random_enemy_center = 113
script_find_travel_location = 114
script_get_relation_between_parties = 115
script_calculate_weekly_party_wage = 116
script_calculate_player_faction_wage = 117
script_calculate_hero_weekly_net_income_and_add_to_wealth = 118
script_cf_reinforce_party = 119
script_hire_men_to_kingdom_hero_party = 120
script_get_percentage_with_randomized_round = 121
script_create_cattle_herd = 122
script_buy_cattle_from_village = 123
script_kill_cattle_from_herd = 124
script_create_kingdom_hero_party = 125
script_create_kingdom_party_if_below_limit = 126
script_cf_create_kingdom_party = 127
script_get_troop_attached_party = 128
script_center_get_food_consumption = 129
script_center_get_food_store_limit = 130
script_refresh_village_merchant_inventory = 131
script_refresh_village_defenders = 132
script_village_set_state = 133
script_process_village_raids = 134
script_process_sieges = 135
script_lift_siege = 136
script_process_alarms = 137
script_party_set_ai_state = 138
script_decide_kingdom_party_ais = 139
script_party_decide_next_ai_state_under_command = 140
script_kingdom_hero_decide_next_ai_state_follow_or_not = 141
script_kingdom_hero_decide_next_ai_state = 142
script_process_kingdom_parties_ai = 143
script_process_hero_ai = 144
script_select_faction_marshall = 145
script_get_center_faction_relation_including_player = 146
script_decide_faction_ai = 147
script_check_and_finish_active_army_quests_for_faction = 148
script_troop_get_player_relation = 149
script_change_troop_renown = 150
script_change_player_relation_with_troop = 151
script_change_player_relation_with_center = 152
script_change_player_relation_with_faction = 153
script_set_player_relation_with_faction = 154
script_change_player_relation_with_faction_ex = 155
script_cf_get_random_active_faction_except_player_faction_and_faction = 156
script_make_kingdom_hostile_to_player = 157
script_change_player_honor = 158
script_change_player_party_morale = 159
script_cf_player_has_item_without_modifier = 160
script_get_player_party_morale_values = 161
script_diplomacy_start_war_between_kingdoms = 162
script_party_calculate_and_set_nearby_friend_strength = 163
script_init_ai_calculation = 164
script_recalculate_ais = 165
script_recalculate_ai_for_troop = 166
script_calculate_troop_ai = 167
script_calculate_troop_ai_under_command = 168
script_diplomacy_start_peace_between_kingdoms = 169
script_event_kingdom_make_peace_with_kingdom = 170
script_randomly_start_war_peace = 171
script_exchange_prisoners_between_factions = 172
script_add_notification_menu = 173
script_finish_quest = 174
script_get_information_about_troops_position = 175
script_recruit_troop_as_companion = 176
script_setup_random_scene = 177
script_enter_dungeon = 178
script_enter_court = 179
script_find_high_ground_around_pos1 = 180
script_select_battle_tactic = 181
script_select_battle_tactic_aux = 182
script_battle_tactic_init = 183
script_battle_tactic_init_aux = 184
script_battle_tactic_apply = 185
script_battle_tactic_apply_aux = 186
script_team_get_class_percentages = 187
script_get_closest3_distance_of_enemies_at_pos1 = 188
script_team_get_average_position_of_enemies = 189
script_search_troop_prisoner_of_party = 190
script_change_debt_to_troop = 191
script_abort_quest = 192
script_cf_is_quest_troop = 193
script_check_friendly_kills = 194
script_simulate_retreat = 195
script_simulate_battle_with_agents_aux = 196
script_map_get_random_position_around_position_within_range = 197
script_get_number_of_unclaimed_centers_by_player = 198
script_troop_count_number_of_enemy_troops = 199
script_cf_troop_check_troop_is_enemy = 200
script_troop_get_leaded_center_with_index = 201
script_cf_troop_get_random_leaded_walled_center_with_less_strength_priority = 202
script_cf_troop_get_random_leaded_town_or_village_except_center = 203
script_troop_write_owned_centers_to_s2 = 204
script_troop_write_family_relations_to_s1 = 205
script_write_family_relation_as_s3s_s2_to_s4 = 206
script_complete_family_relations = 207
script_collect_friendly_parties = 208
script_encounter_calculate_fit = 209
script_encounter_init_variables = 210
script_calculate_renown_value = 211
script_cf_get_first_agent_with_troop_id = 212
script_cf_team_get_average_position_of_agents_with_type_to_pos1 = 213
script_cf_turn_windmill_fans = 214
script_print_party_members = 215
script_round_value = 216
script_change_banners_and_chest = 217
script_remove_siege_objects = 218
script_describe_relation_to_s63 = 219
script_describe_center_relation_to_s3 = 220
script_center_ambiance_sounds = 221
script_center_set_walker_to_type = 222
script_cf_center_get_free_walker = 223
script_center_remove_walker_type_from_walkers = 224
script_init_town_walkers = 225
script_cf_enter_center_location_bandit_check = 226
script_init_town_agent = 227
script_init_town_walker_agents = 228
script_agent_get_town_walker_details = 229
script_tick_town_walkers = 230
script_set_town_walker_destination = 231
script_town_init_doors = 232
script_siege_init_ai_and_belfry = 233
script_cf_siege_move_belfry = 234
script_cf_siege_rotate_belfry_platform = 235
script_cf_siege_assign_men_to_belfry = 236
script_siege_move_archers_to_archer_positions = 237
script_store_movement_order_name_to_s1 = 238
script_store_riding_order_name_to_s1 = 239
script_store_weapon_usage_order_name_to_s1 = 240
script_team_give_order_from_order_panel = 241
script_update_order_panel = 242
script_update_agent_position_on_map = 243
script_convert_3d_pos_to_map_pos = 244
script_update_order_flags_on_map = 245
script_update_order_panel_checked_classes = 246
script_update_order_panel_statistics_and_map = 247
script_consume_food = 248
script_calculate_troop_score_for_center = 249
script_assign_lords_to_empty_centers = 250
script_create_village_farmer_party = 251
script_do_party_center_trade = 252
script_player_join_faction = 253
script_player_leave_faction = 254
script_activate_deactivate_player_faction = 255
script_agent_reassign_team = 256
script_start_quest = 257
script_conclude_quest = 258
script_succeed_quest = 259
script_fail_quest = 260
script_report_quest_troop_positions = 261
script_end_quest = 262
script_cancel_quest = 263
script_update_village_market_towns = 264
script_update_mercenary_units_of_towns = 265
script_update_volunteer_troops_in_village = 266
script_update_npc_volunteer_troops_in_village = 267
script_update_companion_candidates_in_taverns = 268
script_update_ransom_brokers = 269
script_update_tavern_travelers = 270
script_update_villages_infested_by_bandits = 271
script_update_booksellers = 272
script_update_tavern_minstels = 273
script_update_faction_notes = 274
script_update_faction_traveler_notes = 275
script_update_troop_notes = 276
script_update_troop_location_notes = 277
script_update_center_notes = 278
script_update_center_recon_notes = 279
script_update_all_notes = 280
script_shield_item_set_banner = 281
script_add_troop_to_cur_tableau = 282
script_add_troop_to_cur_tableau_for_character = 283
script_add_troop_to_cur_tableau_for_inventory = 284
script_add_troop_to_cur_tableau_for_party = 285
script_get_prosperity_text_to_s50 = 286
script_spawn_bandits = 287
script_count_mission_casualties_from_agents = 288
script_get_max_skill_of_player_party = 289
script_upgrade_hero_party = 290
script_get_improvement_details = 291
script_cf_troop_agent_is_alive = 292
script_cf_village_recruit_volunteers_cond = 293
script_village_recruit_volunteers_recruit = 294
script_get_troop_item_amount = 295
script_get_name_from_dna_to_s50 = 296
script_change_center_prosperity = 297
script_get_center_ideal_prosperity = 298
script_get_poorest_village_of_faction = 299
script_troop_add_gold = 300
script_initialize_npcs = 301
script_objectionable_action = 302
script_post_battle_personality_clash_check = 303
script_event_player_defeated_enemy_party = 304
script_event_player_captured_as_prisoner = 305
script_npc_morale = 306
script_retire_companion = 307
script_reduce_companion_morale_for_clash = 308
script_calculate_ransom_amount_for_troop = 309
script_offer_ransom_amount_to_player_for_prisoners_in_party = 310
script_event_hero_taken_prisoner_by_player = 311
script_cf_check_hero_can_escape_from_player = 312
script_cf_party_remove_random_regular_troop = 313
script_place_player_banner_near_inventory = 314
script_place_player_banner_near_inventory_bms = 315
script_stay_captive_for_hours = 316
script_set_parties_around_player_ignore_player = 317
script_randomly_make_prisoner_heroes_escape_from_party = 318
script_fill_tournament_participants_troop = 319
script_get_num_tournament_participants = 320
script_get_random_tournament_participant = 321
script_add_tournament_participant = 322
script_get_random_tournament_team_amount_and_size = 323
script_get_troop_priority_point_for_tournament = 324
script_sort_tournament_participant_troops = 325
script_remove_tournament_participants_randomly = 326
script_end_tournament_fight = 327
script_get_win_amount_for_tournament_bet = 328
script_tournament_place_bet = 329
script_calculate_amount_of_cattle_can_be_stolen = 330
script_draw_banner_to_region = 331
script_get_troop_custom_banner_num_positionings = 332
script_get_custom_banner_charge_type_position_scale_color = 333
script_get_random_custom_banner = 334
script_get_custom_banner_color_from_index = 335
script_cf_check_color_visibility = 336
script_get_next_active_kingdom = 337
script_store_average_center_value_per_faction = 338
script_remove_cattles_if_herd_is_close_to_party = 339
script_get_rumor_to_s61 = 340
script_lord_comment_to_s43 = 341
script_add_log_entry = 342
script_get_relevant_comment_for_log_entry = 343
script_get_relevant_comment_to_s42 = 344
script_find_rival_from_faction = 345
script_rebellion_arguments = 346
script_get_culture_with_party_faction_for_music = 347
script_music_set_situation_with_culture = 348
script_combat_music_set_situation_with_culture = 349
script_play_victorious_sound = 350
script_set_items_for_tournament = 351
script_custom_battle_end = 352
script_remove_troop_from_prison = 353
script_formation_agent_init = 354
script_formation_array_init = 355
script_formation_formulate_arrays = 356
script_cf_formation_agent_assign_array = 357
script_cf_formation_elect_array_leader = 358
script_cf_apply_formation = 359
script_maintain_formation = 360
script_formation_clean_up = 361
script_formation_ai_tactics = 362
script_cf_formation_ai_deploy_array_generic = 363
script_formation_move_to_pos = 364
script_formation_move = 365
script_formation_turn = 366
script_formation_accelerate = 367
script_formation_density_change = 368
script_dismiss_battle_array = 369
script_formation_move_key_reaction = 370
script_formation_turn_key_reaction = 371
script_formation_charge_key_reaction = 372
script_formation_density_key_reaction = 373
script_formation_follow_key_reaction = 374
script_formation_move_to_pos_key_reaction = 375
script_apply_formation_key_reaction = 376
script_formation_auto_rotation_key_reaction = 377
script_formation_tactical_charge_key_reaction = 378
script_formation_dismiss_key_reaction = 379
script_calculate_formation_row = 380
script_formation_reassign_array = 381
script_get_closest_distance_of_enemy_at_pos1 = 382
script_formation_tactical_charge_generic = 383
script_cf_calculate_enemy_infantry_centroid = 384
script_get_square_distance_between_positions = 385
script_calculate_enemy_infantry_clustering = 386
script_cf_calculate_enemy_infantry_linear_regression_pos = 387
script_formation_tactical_charge_cavalry = 388
script_formation_check_array_ammo = 389
script_formation_tactical_charge_ranged = 390
script_convert_to_slot_no = 391
script_arctan = 392
script_formation_tactical_charge_line = 393
script_formation_tactical_charge_phalanx = 394
script_formation_tactical_charge_wedge = 395
script_formation_tactical_charge_square = 396
script_formation_line = 397
script_formation_phalanx = 398
script_formation_wedge = 399
script_formation_square = 400
script_update_formation_key_config_buttons = 401
script_update_formation_order_panel = 402
script_update_formation_order_flags_on_map = 403
script_update_formation_order_panel_checked_arrays = 404
script_update_formation_order_panel_statistics_and_map = 405
script_cf_shift_pos1_along_y_axis_to_ground = 406


